//
//  IMTextMessage.m
//  MLIM
//
//  Created by molon on 15/6/25.
//  Copyright (c) 2015年 molon. All rights reserved.
//

#import "IMTextMessage.h"
#import "IMCommon.h"

@implementation IMTextMessage

- (instancetype)initWithCoder:(NSCoder *)coder
{
    self = [super initWithCoder:coder];
    if (self) {
        self.content = [coder decodeObjectForKey:SELSTR(content)];
    }
    return self;
}

- (void)encodeWithCoder:(NSCoder *)aCoder {
    [super encodeWithCoder:aCoder];
    
    [aCoder encodeObject:self.content forKey:SELSTR(content)];
}


- (id)simpleDescription
{
    return self.content;
}

@end
